package cn.wolfcode.service.impl;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.mapper.PermissionMapper;
import cn.wolfcode.qo.QueryObject;
import cn.wolfcode.service.IPermissionService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission>  implements IPermissionService {


    @Override
    public Page<Permission> queryPage(QueryObject qo) {
        Page<Permission> page = new Page<>(qo.getCurrentPage(),qo.getPageSize());
        QueryWrapper<Permission> wrapper = new QueryWrapper<>();
        return super.page(page,wrapper);
    }
}
